package com.aspirecn.gateway.web;
//package com.aspirecn.web;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cloud.netflix.zuul.web.ZuulHandlerMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.aspirecn.service.RefreshRouteService;
//
//import java.util.Map;
//
//@RestController//for test
//public class RouteController {
//
//    @Autowired
//    RefreshRouteService refreshRouteService;
//
//    @RequestMapping("/refreshRoute")
//    public String refreshRoute(){
//    	//zuulHandlerMapping.setDirty(true);
//        refreshRouteService.refreshRoute();
//        return "OK";
//    }
//
//    @Autowired
//    ZuulHandlerMapping zuulHandlerMapping;
//
//    @RequestMapping("/watchNowRoute")
//    public String watchNowRoute(){
//        Map<String, Object> handlerMap = zuulHandlerMapping.getHandlerMap();
//        return handlerMap.toString();
//    }
//
//
//
//}
